<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");

//获取板块的设置
include_once("model/setting.php");


//根据页面数量信息，筛选信息，创造url，供页码使用
include_once("model/set_url.php");


$data['opportunity']=select_lines_all_items($table_prefix."opportunity","nid desc","status != '已删除'","");

$data['opportunity_ing']=select_lines_all_items($table_prefix."opportunity","nid desc","status = '跟进中'","");
$data['opportunity_failure']=select_lines_all_items($table_prefix."opportunity","nid desc","status = '失败'","");
$data['opportunity_success']=select_lines_all_items($table_prefix."opportunity","nid desc","status = '成功'","");



$data['employee']=unique_array(transform_2darray_in_1darray_number_as_key($data['opportunity'],'principal'));


//员工 未做数据筛选。全部都显示
$employee_list = select_lines_all_items($table_Prefix . "employee", "nid desc", "", "0");
$employee=transform_2darray_in_1darray_with_new_key($employee_list,"nid","name");


?>

